package com.rlf.sf.legacymapping.xml.object;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("legacy-category")
public class LegacyCategory {
	
	@XStreamAsAttribute
	@XStreamAlias("message-key")
	private String messageKey;
	
	@XStreamImplicit(itemFieldName = "legacy-permission")
	private List<LegacyPermission> legacyPermissions = new ArrayList<>();;

	public String getMessageKey() {
		return messageKey;
	}

	public void setMessageKey(String messageKey) {
		this.messageKey = messageKey;
	}

	public List<LegacyPermission> getLegacyPermissions() {
		return legacyPermissions;
	}

	public void setLegacyPermissions(List<LegacyPermission> legacyPermissions) {
		this.legacyPermissions = legacyPermissions;
	}
	
}
